package pack2;

import java.io.PrintStream;
import java.util.Scanner;
public class java15 {
    public static void main(String[] arge){
     Scanner sc= new Scanner(System.in);
     double high=sc.nextDouble();
     int times=sc.nextInt();
     double sum=high;
        for (int i = 1; i < times; i++) {
            sum+=high;
            high/=2;
        }
        high/=2;
        System.out.printf("sum=%.1f\n", sum);
        System.out.printf("high=%.1f\n", high);
    }
}
